package com.jd.sunny.java.multithreading.testlockandsynchronize;

/**
 * @Description:
 * @author:sunny
 * @since:2012-12-13 18:07
 * @version:1.0.0
 */
public class Test {

    private final static int THREAD_COUNT = 1000;
    public static final long MAX = 100000000;
    
    public static void main(String[]args){
        System.out.println("START=" + System.currentTimeMillis());
        Plus sunlin = new Plus(0,MAX);

        for (int i =0;i<THREAD_COUNT;i++){
            PlusRunnable plusRunnable = new PlusRunnable(sunlin);
            Thread thread = new Thread(plusRunnable);
            thread.start();
        }

    }

}
